/* i2c_app.h */
#ifndef __I2C_APP_H__
#define __I2C_APP_H__

#include "fsl_common.h"

#define APP_I2C_SLAVE_DEV_ADDR  0x12 /* 7位地址, 实际发送时还需要左移1位. */

#define APP_I2C_SLAVE_DATA_LEN  32 /* 指定i2c slave从机中数据缓存的长度. */

#define APP_I2C_SLAVE_DATA_IDX_T0_H 0
#define APP_I2C_SLAVE_DATA_IDX_T0_L 1
#define APP_I2C_SLAVE_DATA_IDX_T1_H 2
#define APP_I2C_SLAVE_DATA_IDX_T1_L 3
#define APP_I2C_SLAVE_DATA_IDX_T2_H 4
#define APP_I2C_SLAVE_DATA_IDX_T2_L 5
#define APP_I2C_SLAVE_DATA_IDX_T3_H 6
#define APP_I2C_SLAVE_DATA_IDX_T3_L 7
#define APP_I2C_SLAVE_DATA_IDX_T4_H 8
#define APP_I2C_SLAVE_DATA_IDX_T4_L 9
#define APP_I2C_SLAVE_DATA_IDX_D0 10
#define APP_I2C_SLAVE_DATA_IDX_D1 11
#define APP_I2C_SLAVE_DATA_IDX_D2 12
#define APP_I2C_SLAVE_DATA_IDX_D3 13
#define APP_I2C_SLAVE_DATA_IDX_D4 14
#define APP_I2C_SLAVE_DATA_IDX_D5 15
#define APP_I2C_SLAVE_DATA_IDX_D6 16

#endif /* __I2C_APP_H__ */
